$(function(){
    //内置选项卡
    var $li = $('#tab>li');
	var $ul = $('#content .ul-style');

    $li.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$li.removeClass();
		$this.addClass('current');
		$ul.css('display','none');
		$ul.eq($t).css('display','block');
	});

    var $lib = $('#tabb>li');
	var $ulb = $('#contentb .ul-style');
    $lib.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$lib.removeClass();
		$this.addClass('currentb');
		$ulb.css('display','none');
		$ulb.eq($t).css('display','block');
	});
  
    var $lic = $('#tabc>li');
	var $ulc = $('#contentc .ul-style');
    $lic.click(function(){
		var $this = $(this);
		var $t = $this.index();
		$lic.removeClass();
		$this.addClass('currentc');
		$ulc.css('display','none');
		$ulc.eq($t).css('display','block');
	});
    
    var date = new Date();
	$("#tcsqjb_operatorTime").val(date.format("yyyy-MM-dd"));
	var date1 = new Date();
	$("#tcsb_operatorTime").val(date1.format("yyyy-MM-dd"));
	var date2 = new Date();
	$("#zclr_date").val(date2.format("yyyy-MM-dd"));
	var date3 = new Date();
	$("#pklr_date").val(date3.format("yyyy-MM-dd"));
	var date4 = new Date();
	$("#kdsz_date").val(date4.format("yyyy-MM-dd"));
	var date5 = new Date();
	$("#afsz_date").val(date5.format("yyyy-MM-dd"));
	var date6 = new Date();
	$("#hcsz_date").val(date6.format("yyyy-MM-dd"));
	var date7 = new Date();
	$("#tcjx_operatorTime").val(date7.format("yyyy-MM-dd"));
	var date8 = new Date();
	$("#bzjjb_time").val(date8.format("yyyy-MM-dd"));
    
 });

var refresh = function()
{
	$("#table_list_1").jqGrid("setGridParam", { search: true }).trigger("reloadGrid", [{ page: 1}]);
}

var refreshb = function()
{
	$("#table_list_2").jqGrid("setGridParam", { search: true }).trigger("reloadGrid", [{ page: 1}]);
}

var refreshc = function()
{
	$("#table_list_3").jqGrid("setGridParam", { search: true }).trigger("reloadGrid", [{ page: 1}]);
}

var refreshd = function()
{
	$("#table_list_4").jqGrid("setGridParam", { search: true }).trigger("reloadGrid", [{ page: 1}]);
}

var refreshe = function()
{
	$("#table_list_5").jqGrid("setGridParam", { search: true }).trigger("reloadGrid", [{ page: 1}]);
}

var refreshf = function()
{
	$("#table_list_6").jqGrid("setGridParam", { search: true }).trigger("reloadGrid", [{ page: 1}]);
}

var refreshg = function()
{
	$("#table_list_7").jqGrid("setGridParam", { search: true }).trigger("reloadGrid", [{ page: 1}]);
}

var refreshh = function()
{
	$("#table_list_8").jqGrid("setGridParam", { search: true }).trigger("reloadGrid", [{ page: 1}]);
}
